<template>
  <div>
    <!--条件筛选-->
    <!-- <TopFilter :list="topFilterList" :cols="3" labelWidth="110" @filterChange="changeHandle" @onCollapse="collapseHandle"></TopFilter> -->
    <!--操作 -->
    <button-area :style="{ paddingLeft: '80px' }"></button-area>
    <div>
      <FormPanel ref="formPanel" :list="formList" :cols="3" :labelWidth="160"  :isSubmitBtn="false" @formChange="formChangeHandle" />
    </div>

  </div>
</template>

<script>
import { dictionary } from '@/utils/dictMixin';
import { getSeries } from '@/api/repair/queryStatistics/managementReport';
export default {
  name: 'LHMPersonnelInformation',
  components: {

  },
  mixins: [dictionary],
  data() {
    return {
      formList: this.createFormList(),
    };
  },
  mounted() {
  },
    created() {
    this.init();
  },
  methods: {
   createFormList() {
      return [
        {
          type: 'INPUT',
          label: '一般维修工时',
          disabled:true,
          fieldName: 'addItemCode'
        },
        {
          type: 'INPUT',
          label: '非生产性W工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '钣金油漆工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '缺勤工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '常规保养工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '内部车辆工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: 'PDI工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'BREAK_SPACE',
          label: '',
          style: {}
        },
        {
          type: 'SELECT',
          label: '车系',
          fieldName: 'SERIES_CODE',
          request: {
            fetchApi: getSeries,
            params: {},
            datakey: '',
            valueKey: 'SERIES_CODE',
            textKey: 'SERIES_CODE'
          },
           change: val => {
            console.log('val===' + val);
            if (!val) return;
          }
        },
        {
          type: 'INPUT',
          label: '生产性C工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '生产性G工时',
          disabled:true,
          fieldName: 'addItemName'
        },
        {
          type: 'INPUT',
          label: '生产性I工时',
          disabled:true,
          fieldName: 'addItemName'
        }
      ];
    },
    init(){
    },
    formChangeHandle(val) {
      this.saveData = val;
    },
  }
};
</script>

<style lang="less" scoped></style>
